<?php
class Macys_View_Helper_Category_V2StaticCategories extends Zend_View_Helper_Abstract {

	public $view;
	public $log;

	public function setView(Zend_View_Interface $view) {
		$this->view = $view;

	}

	public function category_V2StaticCategories() {
		$this->log = Zend_Registry::get('log');
		$cat = Macys_Api_V2_Catalog_Category::getInstance();
		//return $cat->getStaticCategories();
		$pages = $cat->getStaticInfo()->getStaticCategories();
		//$pages->getStaticCategories()
		//$pages = "";
		if(empty($pages)) {
			
			//array("label"=>"No Data Available");
			$a = new Zend_Navigation_Page_Mvc(array("label"=>"No Data Available", "controller"=> "index", "action"=>"index"));
			$x = new Zend_Navigation(array($a));	
		}
		else {
		$x = new Zend_Navigation($pages);	
		}
		
		//$pages = $cat->getProcessedNavigationCategories();
		
		return $x;
		
	}

}